﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Text;

namespace Utility
{
    [Serializable]
    public class EnumDisplayTextAttribute : Attribute
    {
        public EnumDisplayTextAttribute()
        {

        }

        public EnumDisplayTextAttribute(String displayText)
        {
            this.DisplayText = displayText;
        }

        private String displayText = null;

        public String DisplayText
        {
            get { return displayText; }
            set { displayText = value; }
        }

        public override string ToString()
        {
            return this.DisplayText;
        }

    }
    public enum Status
    {
        /// <summary>
        /// 正常
        /// </summary>
        normal = 0,
        /// <summary>
        /// 删除
        /// </summary>
        delete = 1,
        /// <summary>
        /// 禁用
        /// </summary>
        disable = 2
    }
    public enum UserStatus
    {
        /// <summary>
        /// 正常
        /// </summary>
        normal=0,
        /// <summary>
        /// 禁用
        /// </summary>
        forbidden=1,
        /// <summary>
        /// 离职
        /// </summary>
        leave=2
    }
    /// <summary>
    /// 性别（0女、1男、2未知）
    /// </summary>
    public enum GenderEnum
    {
        [Description("女")]
        Male = 0,
        [Description("男")]
        Female = 1,
        [Description("未知")]
        Unknown = 2
    }

}
